package com.sm.dao;

import com.github.pagehelper.Page;
import com.sm.model.Dynamic;
import com.sm.model.DynamicCollect;
import com.sm.model.DynamicComment;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface DynamicMapper {
    Page<Dynamic> selectDynamic();

    Dynamic selectDynamicById(@Param("dynamicId") Integer dynamicId);

    void deleteByDynamic(@Param("dynamicId") Integer dynamicId);

    int addDynamicPost(Dynamic dynamic);
    int updateDynamic(Dynamic dynamic);
    int updateCommentNum(Dynamic dynamic);
}
